package service;

public class Car {
    private String name;

    public String  start(){
        String str=null;
        str=this.getName()+"已启动";
        return str;
    }
    public String stop(){
        String str=null;
        str="熄火，"+this.getName()+"已停";
        return str;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
